<script lenguage="javascript">
    function moveFocus() {
      document.editar_empleado_form.id.focus();
     
    }
    
   
</script>
<?php 
      $atributos = array('id' => 'editar_empleado_form', 'class' => 'form_editar_empleado', 'name' => 'editar_empleado_form');
       echo form_open('editar_empleado/editarEmpleado', $atributos);
?>
<fieldset style="width: 1050px;
                  margin-left: 28%">
    <table cellspacing="0">
        <caption>Modificar Empleado</caption>
        <tr>
            <th class="elthini">Dni</th>
            <th class="elth">Nombre</th>
            <th class="elth">Apellido</th>
            <th class="elthfin">Editar Empleado</th>
        </tr>
        <?php foreach($empleados as $i=>$id){ ?>
        <tr>
        <td class="eltd"><?php echo $id['idEmpleado'] ?></td>
        <td class="eltd"><?php echo $id['nombre'] ?></td>
        <td class="eltd"><?php echo $id['apellido'] ?></td>
        <td class="eltd"><INPUT TYPE="checkbox" NAME="id" onClick="moveFocus()" VALUE="<?php echo $id['idEmpleado'] ?> "/></td>
        </tr>
        <?php }?>
    </table>
</fieldset> 

<fieldset style="margin-left: 30% ">
 <input type="submit" id="registrar" value="Editar Empleado"/>
</fieldset>
    
<?php echo form_close() ?> 
    


